﻿using System.Collections.Generic;
using System.ComponentModel;
using System.Web.Services;
using KPIS.GERP.GFMS.IBLL;
using KPIS.GERP.GFMS.BLL;
using KPIS.GERP.GFMS.MODEL;

namespace KPIS.GERP.GFMS.SERVICE
{
    /// <summary>
    /// Summary description for BGM_MAS_Source
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class BGM_MAS_Source : System.Web.Services.WebService
    {
        IBLL_BGM_MAS_Source bll = new B_BGM_MAS_Source();

        [WebMethod]
        public List<M_BGM_MAS_Source> GetFull(bool bLeafOnly)
        {
            return (List<M_BGM_MAS_Source>)bll.GetFull(bLeafOnly);
        }

        [WebMethod]
        public List<M_BGM_MAS_Source> GetList()
        {
            return (List<M_BGM_MAS_Source>)bll.GetList();
        }

        [WebMethod]
        public M_BGM_MAS_Source GetInfo(string seq)
        {
            return bll.GetInfo(seq);
        }

        private void InitializeComponent()
        {

        }
    }
}
